package com.hp.service;

import com.hp.entity.books;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {
    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    public List<books> findAll()throws Exception;

    /**
     * 分页查询
     */
    public DataGridResultInfo findlinkList(int page,int rows)throws Exception;

    /**
     * 删除
     * @param
     * @return
     * @throws Exception
     */
    public SubmitResultInfo deletetype(String booktypeid)throws Exception;

    /**
     *修改
     * @param
     * @throws Exception
     */
    public SubmitResultInfo updateLink(books book)throws Exception;

    public SubmitResultInfo add(books book)throws Exception;

    /**
     * 修改类型
     * @param
     * @return
     * @throws Exception
     */
    public books findById(String bookid)throws Exception;
}
